package MyOop04;

/**
 * StringBuilder类应用
 */
public class StringBuilderDemo010 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("abc");

        sb.append("d");
        sb.append("e");
        sb.append("f");
        sb.append(3.4);
        sb.append(true);
        System.out.println(sb);

         sb.reverse();
        System.out.println(sb);

        System.out.println(sb.length());

        System.out.println(sb.toString());
    }
}
